package router

import (
	ctrl "a-admin/web/controller"
	midd "a-admin/web/middleware"

	"github.com/gofiber/fiber/v2"
)

func InitSysLogininforRoutes(r fiber.Router) {
	server := ctrl.NewSysLogininforController()
	rg := r.Group("/system/logininfor")
	{
		rg.Get("/list", server.List)
		rg.Get("/unlock/:userName", midd.OperLogHandler("SYS", midd.OTHER), server.Unlock)
		rg.Post("/export", midd.OperLogHandler("SYS", midd.EXPORT), server.Export)
		rg.Delete("/clear", midd.OperLogHandler("SYS", midd.CLEAN), server.Clear)
	}
}
